package study.仪器解析.微生物培养仪;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;

public class TxtLineReader {
    public static void main(String[] args) {
        String path = "E:\\DeskTop\\工作\\项目信息\\仪器对接\\文档\\哈北仪器导出文件格式\\{[TempFilter]}202552611153072T.txt";

        try (BufferedReader br = new BufferedReader(new InputStreamReader(Files.newInputStream(Paths.get(path)), "GB2312"))) {
            String line;
            while ((line = br.readLine()) != null) {
                System.out.println(line);  // 逐行打印
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

